<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {

        //后台用户
        DB::table('users')->insert([
            ['name'=>'admin','email'=>'admin@admin.com','password'=>bcrypt('admin')],
        ]);

        DB::table('lines')->insert([
            ['start'=>'昆明','end'=>'安宁','price'=>25],
            ['start'=>'昆明','end'=>'宜良','price'=>30],
        ]);

        DB::table('drivers')->insert([
            ['name'=>'李博','phone'=>'18788402136','car_no'=>'云A-8777d','car_type'=>'哈弗H9','num'=>6,'free'=>6,'line_id'=>1],
            ['name'=>'王峰','phone'=>'13619864574','car_no'=>'云A-65847','car_type'=>'宝骏560','num'=>6,'free'=>6,'line_id'=>2],
        ]);

        DB::table('sys_configs')->insert([
            ['key'=>'phone']
        ]);

    }
}
